package com.xingmang.common.dto.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @auther: hansom
 * @Version: 1.0
 * @create 2023/6/30 11:21
 */
@ApiModel("OA流程新增请求")
@Data
public class OaFlowSaveDTO {
    @ApiModelProperty(value = "流程名称",required = true)
    @NotEmpty(message = "流程名称不能为空")
    private String flowName;
    @ApiModelProperty(value = "分类ID",required = true)
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;
    @ApiModelProperty(value = "流程排序",required = true)
    @NotNull(message = "分类排序不能为空")
    @Min(value = 1,message = "最小值为1")
    private Integer flowOrder;
    @ApiModelProperty(value = "流程地址",required = true)
    @NotEmpty(message = "地址不能为空")
    private String flowUrl;
}
